<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="css/index.css">
    <script src="./js/jquery-1.11.3.min.js"></script>
    <script src="./js/bootstrap.min.js"></script>
    <script src="./js/utils.js"></script>
    <title>Katy 水果商品管理系统</title>
</head>
<body>
    <!-- 让其中的元素居中 -->
<div class="container">
    <!-- 引入导航条 -->
    <nav class="navbar  navbar-inverse">
            <div class="container-fluid">
              <!-- Brand and toggle get grouped for better mobile display -->
              <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                  <span class="sr-only">Toggle navigation</span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">Katy水果商品管理系统</a>
              </div>
          
              <!-- Collect the nav links, forms, and other content for toggling -->
              <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                  <li class="active"><a href="#">首页 <span class="sr-only">(current)</span></a></li>
                  <li><a href="#">其他页面</a></li>
                  
                </ul>
               
                <ul class="nav navbar-nav navbar-right">
                  <li><a href="#">登录</a></li>
                  <li><a href="#">注册</a></li>
                </ul>
              </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
          </nav>
          <!-- 调出模态框的按钮 -->
          <button type="button" class="btn btn-primary btn-lg btn-add btn-default" data-toggle="modal" data-target="#btn-add">
                添加商品
              </button>
          <!-- 引入表格 -->
          <table class="table table-bordered table-hover table-condensed">
                <thead>
                    <tr>
                        <th>编号</th>
                        <th>商品名称</th>
                        <th>商品价格</th>
                        <th>商品数量</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="tbody">
                    <!-- 通过点击由js添加class edit在tr上 -->
                    <!-- <tr class="shop-list">
                        <td><span>1</span><input type="text"></td>
                        <td><span>苹果</span><input type="text"></td>
                        <td><span>12</span><input type="text"></td>
                        <td><span>1</span><input type="text"></td>
                        <td><button class="btn btn-info btn-sm btn-edit">编辑</button>
                            <button class="btn btn-danger btn-sm btn-del">删除</button>
                            <button class="btn btn-success btn-sm btn-ok">确定</button>
                            <button class="btn btn-warning btn-sm btn-cancel">取消</button></td>
                    </tr> -->
                   
                </tbody>
              </table>
</div>
<!-- 引入模态框 -->
<!-- Button trigger modal -->

      
      <!-- Modal -->
      <div class="modal fade" id="btn-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
              <h4 class="modal-title" id="myModalLabel">添加商品</h4>
            </div>
            <div class="modal-body">
            <!-- 添加操作输入框 -->
            <form class="form-horizontal">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">商品名称</label>
                      <div class="col-sm-10">
                        <input type="email" class="form-control" id="inputName" placeholder="商品名称">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">商品价格</label>
                      <div class="col-sm-10">
                        <input type="number" class="form-control" id="inputPrice" placeholder="商品价格">
                      </div>
                     
                    </div>
                    <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label">商品数量</label>
                            <div class="col-sm-10">
                              <input type="number" class="form-control" id="inputNum" placeholder="商品数量">
                            </div>
                           
                          </div>
                   
                  </form>
            </div>
            <div class="modal-footer">
              <p  id="successInfo"></p>
              <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
              <button type="button" class="btn btn-primary" id="addBtn">添加</button>
            </div>
          </div>
        </div>
      </div>
      <!-- 删除成功与否提示信息 -->
      <div id="delInfo">
        
      </div>

</body>
<script src="./js/select.js"></script>
<script src="./js/add.js"></script>
<script src="./js/delete.js"></script>
<script src="./js/update1.js"></script>
</html>